package it.polimi.swKnights.SWIMv2.ejb.entityBeans;

import java.io.Serializable;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: Ability
 * 
 */
@Entity
public class Ability implements Serializable
{
	@Id
	private String name;

	private String description;

	private boolean confirmed;

	private boolean alreadySeen;

	/*
	 * Serial Version ID
	 */

	private static final long serialVersionUID = 1L;

	/*
	 * Constructors
	 */

	public Ability()
	{
		super();
	}

	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name.replace(' ', '-');
	}

	public Ability(String name, String description, boolean alreadySeen,
			boolean confirmed)
	{

		this.setName(name);
		this.description = description;
		this.alreadySeen = alreadySeen;
		this.confirmed = confirmed;

	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public boolean isConfirmed()
	{
		return confirmed;
	}

	public void setConfirmed(boolean confirmed)
	{
		this.confirmed = confirmed;
	}

	public boolean isAlreadySeen()
	{
		return alreadySeen;
	}

	public void setAlreadySeen(boolean alreadySeen)
	{
		this.alreadySeen = alreadySeen;
	}

}
